<!DOCTYPE html>
<html lang="en">
<!--H5 最新项目 2024.12.11-->
<head version="2024.12.13 10:10">

  <script>

 
    window.BMAP_PROTOCOL = "https";
    window.BMap_loadScriptTime = (new Date).getTime();
    // 只有安卓需要这么处理
    if (window.navigator.userAgent.match(/android/i)) {
      if (window.location.href.indexOf('file:') == 0) {
        window.location.href = "http://localhost";
      }
    }
  </script>
  <meta charset="utf-8" />
  <title>蜂喔</title>
  <base href="/" />
  <meta name="viewport"
    content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  <meta name="format-detection" content="telephone=no" />
  <meta name="msapplication-tap-highlight" content="no" />
  <!-- <link rel="icon" type="image/png" href="assets/icon/favicon.png" /> -->
  <link rel="icon" type="image/png" href="assets/icon/favicon-lj.png" />
  <script type="text/javascript" src="assets/js/loading.js"></script>
  <script>
    if (global === undefined) {
      var global = window;
    }
  </script>

  <meta name="apple-mobile-web-app-capable" content="yes" />
  <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  <script>
    window.onload = function () {
      document.body.addEventListener('touchmove', function (e) {
        if (document.activeElement) {
          // 富文本
          if (document.activeElement.hasAttribute('data-gramm')) {

          } else {
            // document.activeElement.blur();
          }
        }
      }, { passive: true });
    }
    window.ononline = function () {
      console.log("网络正常");
      localStorage.setItem('netState', 'Network connection');
    }
    window.onoffline = function () {
      console.log("网络已断开");
      localStorage.setItem('netState', 'No network connection');
      showAlert('连接失败,请检查你的网络设置')

    }
    if (navigator.onLine) {
      console.log("ios网络正常");
      localStorage.setItem('netState', 'Network connection');
    } else {
      console.log("ios网络已断开");
      localStorage.setItem('netState', 'No network connection');
      showAlert('连接失败,请检查你的网络设置')
    }
  </script>
  <script type="text/javascript" src='assets/js/jquery.min.js'></script>
  <script type="text/javascript" src="assets/js/jweixin-1.6.0.js"></script>
  <script type="text/javascript" src="assets/quill.min.js"></script>
  <link rel="stylesheet" href="assets/quill.snow.css" rel="stylesheet">
</head>

<body id="htmlbody">

  <script type="text/javascript" src="assets/js/echarts.min.js"></script>
  <link rel="stylesheet" href="assets/js/cropper.min.css" rel="stylesheet">
  <script type="text/javascript" src="assets/js/cropper.min.js"></script>
  <style>
    .fengwoCustomerChat {
      position: absolute;
      z-index: 9999;
      bottom: 6.06rem;
      right: 0;
      width: 7.5rem;
      height: 2.5rem;
      background: rgba(255, 255, 255, 0.95);
      box-shadow: 0rem 0.13rem 0.75rem 0rem rgba(0, 0, 0, 0.1);
      border-radius: 6.25rem 0rem 0rem 6.25rem;
      display: flex;
      text-align: center;
      align-items: center;
      justify-content: center;
    }

    .fengwoCustomerChatLabel {
      font-size: 0.88rem;
      font-weight: bold;
      color: #121212;
    }

    .fcc-icon {
      width: 1.88rem;
      height: 1.56rem;
      margin-left: 0.56rem;
    }
  </style>
  <div id="html2canvas"></div>

  <!-- <script type="text/javascript" src="https://js.nicedit.com/nicEdit-latest.js"></script>  -->
  <!-- <script type="text/javascript" src="assets/nicEdit.js"></script>  -->
  <!-- <script type="text/javascript">
        bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });
  </script> -->
  <app-root></app-root>
  <script>
    var _hmt = _hmt || [];
    (function () {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?31dc0bb7a17c37c6fdb0ed1f4c1a2a80";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
    $(function () {
      $('div.imgDolg').each(function () {
        new RTP.PinchZoom($(this), {});
      });
    });
  </script>
  <!-- 本地加载的1.3.2已经换成下面的1.6.0 下面注释掉iOS启动报错 -->
  <!-- <script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script> -->
  <script type="text/javascript">
    var uri = location.href.split('#')[0];
    if (location.href.split('#')[0] === 'https://m.fengwo168.com/') {

      var encodeUri = encodeURIComponent(uri);
      $.ajax({
        type: "get",    //请求类型
        contentType: 'application/json',
        url: 'https://app-api.xw18.cn/baseInfo/getWechatJsApi?url=' + encodeUri,//请求的 URL地址
        dataType: "json",//返回的数据类型
        success: (data) => {
          var timestamp = data.timestamp; //根据js-sdk生成的时间戳
          var nonceStr = data.nonceStr; //根据js-sdk生成的随机字符串
          var signature = data.signature; //跟局js-sdk生成的签名
          // 微信分享配置函数
          wx.config({
            debug: false, // 调试模式
            appId: 'wx2972c057fc73b5ab', //必填，微信公众号的appId
            timestamp: timestamp, // 必填，生成签名的时间戳
            nonceStr: nonceStr, // 必填，生成签名的随机串
            signature: signature,// 必填，签名
            jsApiList: ['onMenuShareAppMessage',
              'onMenuShareTimeline']// 必填，需要使用的JS接口列表
          });
          wx.ready(function () {
            console.log('wx.ready({...................');
            var indexTitle = '蜂喔';
            var indexDesc = '房子的事交给蜂喔';
            var indexImgUrl = 'https://m.fengwo168.com/assets/icon/laijian_login_logo@3x.png';
            console.log('indexTitle:', localStorage.getItem('indexTitle'));
            console.log('indexDesc:', localStorage.getItem('indexDesc'));
            console.log('indexImgUrl:', localStorage.getItem('indexImgUrl'));
            if (localStorage.getItem('indexTitle') != 'null') {
              indexTitle = localStorage.getItem('indexTitle');
            }
            if (localStorage.getItem('indexDesc') != 'null') {
              indexDesc = localStorage.getItem('indexDesc');
            }
            if (localStorage.getItem('indexImgUrl') != 'null') {
              indexImgUrl = localStorage.getItem('indexImgUrl');
            }
            wx.onMenuShareAppMessage({
              title: indexTitle,
              desc: indexDesc,
              link: window.location.href,
              imgUrl: indexImgUrl,
              trigger: function (res) {
                console.log('trigger：', res);
              },
              success: function (res) {
                console.log('success：', res);
              },
              cancel: function (res) {
                console.log('cancel：', res);
              },
              fail: function (res) {
                console.log('fail：', res);
              }
            });
            // 分享到朋友圈
            wx.onMenuShareTimeline({
              title: indexTitle,
              link: window.location.href,
              imgUrl: indexImgUrl,
              trigger: function (res) {
                console.log('trigger', res);
              },
              success: function (res) {
                console.log('success', res);
              },
              cancel: function (res) {
                console.log('cancel', res);
              },
              fail: function (res) {
                console.log('fail：', res);
              }
            });
          });
          wx.error(function (res) {
            console.log('error:', res);
          });
        },
        error: function (data) {
          console.log('error:', data)
        }
      });
    }


  </script>
</body>
<audio id="showMessageNotifyAudio" hidden="true">
  <source src="assets/neworder.mp3" />
</audio>

</html>
<!--企业微信客服链接 默认深圳 -->
<input type="hidden" value="https://work.weixin.qq.com/kfid/kfce9d9e6dae30e46a5" name="customerServiceLink" />
<!--企业微信客服icon  -->
<input type="hidden"
  value="https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_165649405086632bb45beefe7fcd893b2f15a1eed206b.png"
  name="customerServiceIcon" />